package com.zhb.mapper;

import com.zhb.beans.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseMapper {

    void addCourse(Course course);

    Course findById(String id);

    List<Course> findAll();

    void deleteCourseByCfa(String courseCfa);

    void updateCourseByCfa(@Param("newCourseCfa") String newCourseCfa, @Param("oldCourseCfa") String oldCourseCfa);
}
